add 18 to weight if end of fragment, 19 otherwise. also unpack byte string initially and just use [char] throughout.