Before doing any encoding conversion check to make sure encoding exists