osx encoding fix moved to platform-api