Process escape sequences (’%HH’) Updates val in place; the result should be UTF-8 encoded and cannot be larger than the input. The result must also still be 0-terminated.
value to unescape (modified in the process), must be a 0-terminated UTF-8 string.
Returns length of the resulting val (
strlen(val) may be
shorter afterwards due to elimination of escape sequences).