Simple URL encoder/decoder