Properly handle unicode string