Why are you adding $encoding as an argument? It's not used given that this method is specific to Windows-1252 characters.