int URL_infer_type(char *path, int force_binary, char **type, char **encoding, int *binary);