Someone, help me out of this encoding hell