Tidy up.
Fix endless loop in htp_decode_path_inplace and htp_decode_urlencoded_inplace.