Expose legaltitlechars through the API

Bug: 47651
Change-Id: I79fdd698e6df75b1823b0d2d150db68e862c640f