encode instead of quote

Fixes #26 
You can test by dropping the plugin into ~/Library/FlashlightPlugins.