One-time pad text encryption in C