Ne notepadba mentsd, mert az tesz BOM-ot az UTF8-as filek elejére. Használj Notepad++-t, vi-t, emacsot, edlin-t, amit csak akarsz, de nótpedet ne.