Added utf encoding statement and constant Ear fitting