Issue #407: Stringify key before calling to_sym.

Fix for issue #407.