Removing hash preceding curl URL