use html charset only if content charset is not set