Now with text files, you'd be hard pressed to run into this bug, but better safe than sorry! Also, if you encrypted any binary files at all you'd probably be screwed.
You subtract a random integer from 0 to 15 from the original ascii character value. Now, what happens if the new ascii value is less than zero? You cant CHR$ a number that isnt between 0 and 255. You'll get an error.