Validate host string input in nfs export refresh.

Fixes #483
Fixes #376