trying utf-8 on both buffer and tostring