Fixed format_time() to return Unicode string