Restrict valid values for the `code_prefix` flag to single character atoms

This is necessary to ensure that we can always reconstruct the entity identifier from the internal entity prefix.