Fix view state migration issue by adjusting the file path strings handling.