Allow passing URL as a string.