mac os x encoding issues