Fixes #31 - encode each value from associative array