Fixes UTF8 encoding when supplying an empty string
Merge pull request #1496 from noctarius/fixed-utf8-encoding-empty-string

Fixes UTF8 encoding when supplying an empty string