Fix loading of fonts with invalid encoding name entry (bug 859204 and 878112)