Better use of open-uri