encode instead of quote

Fixes #26