Takes a string or buffer and writes it to a file accessible with the given URL.