Simplify `select`
Use UTF-8 encoding
Add logging

We don't want to capture STDOUT because Passenger uses it.