Refactored rot13 code.