cherry-pick b40c3d
add charset setting to titlebar partial
use pwp-flexbox mixin