Add support for nvm
[Fix #351] Set empty keys to an invalid UTF-8 sequence