xstring: Get rid of unused functions.

If they are needed again, they can just be reimplemented to use std::string.
xstring: shorter, safer implementation of getExtension