Revert "Fixed adata encoding bug."

This reverts commit 1d1bc481ce9451b9998c5b6c17c43c8dd2bd2509.