Adds escaping by option

Especially useful since simple using encodeURIComponent is not sufficient.