This function makes you vulnerable to an atom injection attack. Use binary_to_existing_atom(I, utf8) instead. If necessary, define the needed atoms somewhere in this module.