you shouldn't trim null - the bytes must be untouched