Properly removes the colour sequence from log. Fixes #480