Update Api.php

Fix UTF8 issue?
Merge pull request #1 from metoro/beta1

Update Api.php