rails app for transforming encoded strings reversably