The iconv extension is not required for the script to run anymore. If the extension is detected, then it will be used, otherwise the script will run in compatibility mode.
Improved Windows compatibility: Windows doesn't support the '%R' time format, so it needed to be replaced with '%H:%M'.