[BUGFIX] fix handling of URI

fix #50 [BUG] Using a querystring on the uri
Merge pull request #54 from PhileCMS/bugfix/Querystring

[BUGFIX] fix handling of URI