fixing encrypt/decrypt to ignore new lines