adding method to webservice and fixing (I hope) encoding issues