Work properly with unicode data