restore past syntax for EOR on text API
fix encoding bug