urldecode functions: Tolerate poorly-formed escape sequences as per PHP (thanks for the input lovio!)