Fixed #21784: Correctly decode stdin input for migration defaults