converted from UTF-8 to ANSI and some further improvements.