fix(util): decode utf-8 encoded string properly