Looked around and couldn't find concise answers, asked Showdown chat and never got a response, so I'm putting this here:
Mental Herb does not fully block Encore- on the turn it is used the target is still forced to use the move they would have been locked into.
The game that prompted this:
http://www.pokemonshowdown.com/replay/smogondoubles10974931 (may contain very bad plays)
The relevant turns are 4 and 5. On turn 4 Cresselia used Helping Hand, on turn 5 I attempted to have Cresselia use Psychic on Whimsicott (I wanted whimsicott dead in case it had giga drain) but was forced into Helping Hand despite Mental Herb's activation, which is obviously not what I selected as Helping Hand has +5 priority and would have gone before Encore. I was not actually Encored into the move- the Helping Hand use on turn 6 was intentional, and the other options were not greyed out.
Hide
Turn 4
scumbag8 withdrew Shaymin-Sky!
scumbag8 sent out Whimsicott!
Cresselia used Helping Hand!
Cresselia is ready to help Tyranitar!
Tyranitar used Rock Slide!
[DEBUG] Boosting from Helping Hand.
[DEBUG] Spread modifier: 0.75.
The foe's Heracross lost 69% of its health!
[DEBUG] Boosting from Helping Hand.
[DEBUG] Spread modifier: 0.75.
The foe's Whimsicott lost 42% of its health!
The foe's Whimsicott held up its Red Card against Tyranitar!
Gastrodon was dragged out!
The foe's Heracross flinched!
[DEBUG] p1: Heracross move interrupted; movedThisTurn: false.
The sandstorm rages.
[DEBUG] natural immunity.
[DEBUG] weather immunity.
Cresselia is buffeted by the sandstorm!
The foe's Whimsicott is buffeted by the sandstorm!
The foe's Heracross is buffeted by the sandstorm!
Turn 5
The foe's Whimsicott used Encore!
Cresselia received an encore!
Cresselia used its Mental Herb to come back to its senses!
Cresselia's encore ended!
Cresselia used Helping Hand!
Cresselia is ready to help Gastrodon!
Gastrodon used Muddy Water!
[DEBUG] Boosting from Helping Hand.
[DEBUG] Spread modifier: 0.75.
The foe's Heracross lost 25% of its health!
[DEBUG] Boosting from Helping Hand.
[DEBUG] Spread modifier: 0.75.
It's not very effective... The foe's Whimsicott lost 29% of its health!
The foe's Heracross fainted!
The sandstorm rages.
[DEBUG] natural immunity.
[DEBUG] weather immunity.
Cresselia is buffeted by the sandstorm!
The foe's Whimsicott is buffeted by the sandstorm!
Rad Surfing Eirin: excuse me
scumbag8 sent out Darkrai!
I apologize if this is intended behavior. I looked and could not find the interaction documented anywhere beyond "it cures encore", and it is very unintuitive. I think it also *would* be mentioned somewhere if it was the case- Encoring a Trick Room user is a rather obvious use of the move, and one that you'd expect Mental Herb to stop. (At the same time though, I feel this would have been reported already by more serious VGC players...)