Fix %b and support %b (apache log format)