Fix my program, which isn't working because the output of transcribe is always one character too short.
