No need to fiddle with the encoder. You increase the bits to 3 and then you can add turn cost information for every junction (where you specify which edges are effected). But that requires that you know what left and right is. Have played with this some time ago, can look if I find the source.
Update: see here: Change priority based on turn preference - #4 by karussell