Merged encode_repository_name and parse_repository_name helpers