Fix sed -z and add test cases.
2 files changed