Added query encoding and decoding function

This library contains two simple functions for encoding and decoding query strings.