Change hammer_str_to_tid() and its callers to restrict the format of