Address https://github.com/keybase/keybase-issues/issues/1225

with a test case...
also gen for browser