change: magic.buffer method accept String/Buffer argument.