Added another two functions to simplify encoding support
Function getLFN rewritten to use FromUTF16 function for encoding conversion