See related issues such as Session.URLParameter nil encoding
It’s not clear to me what the optimal solution is: the framework should not deliver strings with nil or wrong encodings, but also the JSON framework could possibly be more tolerant? e.g. if all Nil encoding strings were assumed to be UTF8, would this perhaps solve 99% of the issues?