Encode U1DB metadata doc prefix. Closes #4658.
Merge remote-tracking branch 'drebs/bug/encode-u1db-metadata-doc-prefix' into develop