Encode #tag links. Fix c++ tag