Add escaping functionality to query-string helper

Let me know if you feel that the tests are a bit redundant.