I forgot where I found this one but this custom made function to convert string to bytes worked when I used it in my code.

Related Posts Plugin for WordPress, Blogger...