spout encoding