be robust on IllegalCharsetNameExceptions and take the default