Optimize str_decode_percent() and to a lesser extent str_encode_percent().