Fixed encoding options method in activity, added method to parse kind attribute in resource type and action