Properly encode strings to UTF8 bytes, see #4