Added fixing special chars in refs table during upgrade.