fix encoding issues in readUntil

StringUtils.readUntil messes up the encoding if UTF-8 characters are used