added extension
fixed assert message when printing a percent char