fix some encoding issue (probably a ruby 1.9.3 issue)
fix mediawiki output to include attribute blocks