Fix colour codes messing up the length of the output when using --colour.