--- warc.c 2016-09-07 11:35:24.000000000 +0200 +++ warc_new.c 2017-03-22 08:32:28.395540715 +0100 @@ -32,6 +32,7 @@ #include "utils.h" #include "version.h" #include "dirname.h" +#include "url.h" #include #include @@ -1365,6 +1366,8 @@ mime_type = "-"; if (redirect_location == NULL || strlen(redirect_location) == 0) redirect_location = "-"; + else + redirect_location = url_escape(redirect_location); number_to_string (offset_string, offset);