convert symbols to strings when encoding