Refactoring: Constructor receives charset parameter. Defaul is UTF-8