Fix gibberish on terminal after copying