a terrible hack that makes offsets right in best effort tried latin1 encoding