Mountain biker safely repels bear encounter near Troy