Fix #10 in which the pathInfo part of the URL needed to be encoded.