@putneyj 's attempt at fixing the encoding issue