Fix #537: Cannot rename file if new filename differs in capitalization only.