rsvg-convert: Handle gzip compressed input

Code copied from rsvg-view.

https://bugzilla.gnome.org/show_bug.cgi?id=735836