[Java] Properly convert strings to/from Modified UTF-8