Fix urlencode filter, with support for safe characters in the argument.

Fixes #82.