Move strip() further up in preprocess_report()

This was causing problems when report['url'] had a trailing space, because
that meant report['file_type'] ended up getting a trailing space too,
which never got stripped.