some encoding quirks