Change rindex() to strrchar(). (MSVC build fix.)