Added test for uri_(en|de)code() and fixed bug.