closes #84: check dictionary input + convert unicode to utf8