Fixes UTF8 encoding when supplying an empty string