Added escape of \n \r as option to session:apply-type-preference