moved encodings to Utils