Java, as Nilsson already mentioned. I think I missed something here. Does utf8_to_string now refute non-minimal encodings? What's the point of that? As long as string_to_utf8 generates minimal encodings, I don't see any problem with being able to decode non-minimal encodings.