sed: support \r in s command