Add function to get index of Base64 character