Re-factor printer= API to be able to support odd characters through encodeURI