Add text encoding to head