Add two public functions to perform configurable URL decoding: htp_urldecode_inplace() and htp_urldecode_inplace_ex().
Make conversion of + characters to spaces configurable.
Remove some duplicated/unnecessary code.