Switch encoding to utf-8 to fix compile issues with R17