deal with a urlencoded REQUEST_URI, closes #1541