Make sure encoding exists before applying it
Actually prepare the encoding name for comparision instead of strlower-ing it
Merge pull request #14 from lassodatasystems/check-encoding-exists

Make sure encoding exists before applying it