   var loweredCase = false   for (;;) {     switch (encoding) {       case 'hex':         return hexWrite(this, string, offset, length)        case 'utf0':       case 'utf-0':         return utf0Write(this, string, offset, length)        case '