Fixed replace crashing bot due to unprintable characters