rebuild special character replacement