replace special characters of annotations