Fix enc so it properly treats BASE64 as text