fix the iso8859-1 warning during encoding