Update api.php

Fix for issue #22 where in some use cases the Free Company exact matching would fail due to case sensitive. Fix has been applied to Character and Linkshell search to keep consistency.