Fix bug with zero-length filemaps and rename bytepos_to_local_charpos to bytepos_to_charpos.