Data sanitization

As committed on master branch:
- https://github.com/woothemes/woocommerce/commit/3277b485b835ef1aa58d9c1025c9adc190eeca33