Fixed bug found by Modassar Ather in the regex used to determine if the query string ended in an unescaped backslash.