Fix strange things appearing in edit summary in edge cases