Fixing emphasis and special chars in links/refs