Escape all reserved characters and both types of quotes

Fixes bug where a file-name such as mailto:support@github.com
would open the URL, instead of the file with the strange filename.