fix invalid filename's case