more style based on conditions, fix differently encoded quotes