fixed _nonHtml to work on pathname only (without query string), added test
Merge pull request #344 from cowbell/without_extension

fixed _nonHtml to work on pathname only (without query string), added test