How about just some simple custom escaping of all non-ASCII characters? `commons-codec` seems to be an overkill for our small library