Add magic encoding header to ruby files