Fix issue when starring resources with dashes in their ID (#30)