'Convert offset to string.'

def n2s(self, offset, length):

    s = ''
    for dummy in range(length):
        if (self.endian == 'I'):
            s += chr((offset & 255))
        else:
            s = (chr((offset & 255)) + s)
        offset = (offset >> 8)
    return s
