fix redirect url of cirros image with open-uri