charset fix from @cnzzr closes #1183