py3compat for hacky unicode casts