first try replacing ANSI characters