Replace _ with - in palette URL, but maintain backwards compatibility for _