fixed encoding for iPhone example