fixed small encoding bug in routes command