escape quotes so that nfs export works [closes #1166]

fixes #1166 - this is the backport of  #1170 to 1-0-stable