Sanitize, but decode. UTF-8 Friendly. Fixes #5401

Originally changed 34db5d68b6c4d4376f16f559c01c41c3f5b6a60b
Tidyup brackets
Add tool for disabling shipping rate cache for debug