repair mangled encoding after edit on Github