replaced String literal "UTF-8" with charset instance