Encode request XML before posting