api: move charms base URL construction to api/uniter