Filtering out ? and / from anchors to match github's anchors.