[+] code refactored, fized issue with utf-8 encoding