encoder: make the "quality" be configurable
encoder: add missing " mark