Added charset and lang information to layout heads