When i try to use regexp `([^.])$` on string that ends with null-char, result group will have length + 1(null symbol).