Pier 1 files for bankruptcy protection amid online challenge