fopen_case: Simplified a bit
Rewrote fopen_case() avoiding TPath (using std::string instead) for better portability
Make it clear that trim() returned string should not be freed.