Windows build fix

Turns out the string functions I removed were used, but missed my grep.
Doesn't matter though, since these are just doing the same thing as
getExtension