Cursor position problem with national characters in path

The cursor position is incorrect on my Mac Sierra when there are national characters in a path entered either with path completion or with the Import Dataset dialog box. I have UTF-8 encoding as default. It seems like the cursor does not count the national characters when positioned at the end of the line. A backspace in the line below with the cursor at the | character erases the x. Rebooting the system does not help. If I write the same path manually I do not get the problem.

fh <- read_excel("data/rådata/rådata_folkhälsokollen.xlsx") |

Thanks for the bug report! I've reproduced this and we're now tracking this at https://github.com/rstudio/rstudio/issues/3698.