Bug fixing: utf8 characters broke command logging function