Tweak decode_scanString

- Added \uXXXX decoding (as UTF-8)
- Unnecessary escapes are ignored instead of throwing an error
- Removed shitty loop

Also tweaked some 5.0 compat stuff