perl was botching unicode. simple sed pipeline instead