Fixed unicode bugs

Made debugerror system woking.