revert an upstream change which causes escaped ansi colour sequences to be printed to the console (e.g. "b'\x1b[32m").