Strings are UTF-8 encoded and should be parsed as such, while it was being parsed as a C string before.