Actually prepare the encoding name for comparision instead of strlower-ing it