Added function to extract u16/u32 from unaligned strings