translation: escape backreferences correctly