fix locale issue in rstudio (was resetting locales). closes #19