Improve sed ANSI character stripping for non-OSx