fixed invalid locale handing in text file logger factory