Fix UnicodeWarning when value is not a str (#98)