Update Api.php

Fix UTF8 issue?