[backport] Add buildcharacter.properties to .gitignore.

(cherry picked from commit 693e55e1cb75055bb243ffca2e18b8e44e80bb8c)