fixed encrypted string conversion