Couldn't these functions return the string with the encoding?  I'd tend to name them a bit shorter as well (GetBOM?)