basic BStr decoding