fix partial styles cache miss
add default external and default internal encoding