code review

mainly string.getBytes("UTF-8") replaced by string.getBytes(StandardCharsets.UTF_8)
Is this really not required anymore? how is this exception handled in the big picture?