fails when converting unicode chars.

some unicode chars are not allowed in some yaml parsing lib. let's just encode them all.