Remove dependancy on StandardCharsets

StandardCharsets is only available in 4.4+. Removing it keeps compatibility with 4.3.