Fixes unicode issues in the API