Fix Bug 3536

StringIndexOutOfBoundsExceptio when opening the R console on windows for the first time