add default utf-8 to class constructor