This ensures that single and double quotes are also encoded, previously they would be left as is. Fixes #113