added supportability for utf-8