update code to meet the revised uribeacon encoding
https://github.com/google/uribeacon/tree/cefc17f4f11a32eec232dc73fc683d9547ea742d/specification