Bunch of safeguards for utf8 errors in buildout module

instead of decoding strings, encode everything back from unicode if neccesary as the underlying API won't accept unicode that much.