Escape values set via pluginpref

Fixes #790