Account for platform encoding differences