Avoid a crash in _quote_params for some default values.

Fix #316.