You were right, the plugin was getting a char* from ASFileSysDisplayStringFromPath. I removed that and added this which seems to have fixed my problem:
ASText pathText = ASTextNew();
ASFileSysDisplayASTextFromPath(ASGetDefaultFileSys(), filePath, pathText);
wchar_t *pathString = (wchar_t*)ASTextGetUnicode(pathText);
Thank you!