[#6812] Fix cached convert UnicodeEncodeError

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>