yep, UrlCodec.encode() is the correct usage.