Fix NanUtf8String implementation

After fiddling with it for a while, this seems to fix the issue I referred to https://github.com/pipobscure/fsevents/pull/38.

However, I'll reiterate that I don't really know what I'm doing, so please evaluate to ensure this makes sense.