bnoordhuis/node — pull request #2 by bnoordhuis (2013-06-10 21:39:37+00:00)
Title: crypto: fix utf8/utf-8 encoding check

Normalize the encoding in getEncoding() before using it. Fixes a
"AssertionError: Cannot change encoding" exception when the caller
mixes "utf8" and "utf-8".

Fixes #5655.

Suggested reviewer: @indutny. Just because.