fixed crash on non-ascii chars, iOS: iPad/iPhone/iPod