StandardCharsets not in 1.6
misc fixes