Fixed retrieving locale data when a valid extension is specified