Seems like an odd place to throw an `UnsupportedEncodingException`, perhaps it should be thrown as a RTE?