encode instead of quote

Fixes #26 
ohh proberly, dont do python and there isnt any test for plugin it seems.