That's the problem; the code page is used to map characters outside the regular ASCII range (A-Z). R doesn't support UTF-8 properly until R 4.2. If you want to use the 65001 code page, you can try daily build versions of R and RStudio; otherwise, change your code page to one specific to your locale, and that should get things working with your current config.