Bug 919909 Buffer.isEncoding now uses TextDecoder instead of hash

Submitted by @hsivonen