Fixes failing unittests for hourly report and templatetags

The hourly report failures stemmed from a change in expected date format
The templatetag was returning a correct urlencoded string in a different
    order than the test.
Merge pull request #794 from caktus/fix/793-unittest-fixes

Fixes failing unittests for hourly report and templatetags