Parse strings containing ANSI style characters.