irc_log_htmlizer.rb: replace files atomically.