Fix calculating offset position in go-autocomplete.el

If I am editing a file containing an unicode character autocompletion stopped working properly. This patch fixes the issue. I copied this from company-go.el.