Use response encoding only when available. Refs #173