Fix some print statements were outputting to STDOUT instead of STDERR. Thanks to ammdispose for the patch.
Revome the call to date and iconv system command each time a HTML file is genrated, call it just one time if directive Locale is defined at initialisation. Thanks to ammdispose for the report.
Remove the use of backstick to call system command in loop to gain some speed. Thanks to ammdispose for the patch.