Added toUpper and toLower methods to Buffer.