Fix rbt patch with unicode characters.

rbt patch was completely failing with unicode characters, presenting
errors on the console. We now encode thet content before writing it to a
temp file, and decode before feeling it to 'git commit'.