copypasta from the old NanFromV8String, which saved space for a zero. I'll change it