Make footprint generation locale-independent

Signed-off-by: Kalle Lampila <kalle.lampila@ixonos.com>