Directory entries and extended attributes similarly hash and compare strings so we'll give them some shared functions for doing so. Signed-off-by: Zach Brown <zab@versity.com>