Creating a function that accepts either string or byte[] - C#