Moved isEncoding method in the Buffer static property