Fixed encoding issues with settings and commands