properly decode byte array as utf-8 string