Bind std::basic_string<unsigned char> to js strings based on incoming

I hope I did this correctly, my git-fu is not very strong.