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