encode url instead of name
don't replace options inline, they are used by other backends too
make compression optional