Homeless man charged with burglary