fix utf-8 warning, add pry debug block