Changed type of buf in NanRawString