encode for oracle adapter