Add fix for old vims

Old vim versions did not support both unicode() and str() in python2 bindings in 
a number of places.

Fixes #829