CLN/DEPR: Fix instances of 'U'/'rU' in open(...)

#7131
Merge pull request #7625 from bwignall/depr_ru

CLN/DEPR: Fix instances of 'U'/'rU' in open(...)