config/commands.py: fixed py3-specific encoding bug