Added the ability to specify the character set encoding of posted data.